//: C14:Useful.h
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// A class to reuse
#ifndef USEFUL_H
#define USEFUL_H

class X
{
    int i;
public:
    X() {
        i = 0;
    }
    void set(int ii) {
        i = ii;
    }
    int read() const {
        return i;
    }
    int permute() {
        return i = i * 47;
    }
};
#endif // USEFUL_H ///:~
